<!doctype html>
{% load static bootstrap3 %}
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>LCO Observation Portal | {% block title %}{% endblock %}</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="apple-touch-icon" href="https://cdn.lcogt.net/mainstyle/img/favicon.png">
        <link rel="shortcut icon" type="image/png" href="https://cdn.lcogt.net/mainstyle/img/favicon-trans.png"/>
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
        <link href='https://s3-us-west-2.amazonaws.com/cdn.lcogt.net/mainstyle/css/affogato-1.0.0.css' rel="stylesheet">
        <link href='https://s3-us-west-2.amazonaws.com/cdn.lcogt.net/mainstyle/css/lco-1.0.0.css' rel="stylesheet">
        <link href="{% static 'css/main.css' %}" rel="stylesheet">
        {% block extra_css %}
        {% endblock %}
    </head>
    <body>
      <!-- Static navbar -->
      <nav class="navbar head downPage">
        <div class="container-fluid">

          <div class="innerHead">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <div class="navbar-header branding branding-logo">
              <a href="https://lco.global" title="LCO.global" rel="home" class="navbar-brand"><img src="https://cdn.lco.global/mainstyle/img/LCO-logo-web.jpg" alt="Las Cumbres Observatory" /></a>
            </div>
            <div class="navbar-header branding">
              <div id="lco-name">
                <a href="/" class="grey">Observing <br/> Portal</a> {% if user.profile.simple_interface %}<span class="basic">basic mode</span>{% endif %}
              </div>
            </div>
            <div id="navbar" class="navbar-collapse collapse headNav">
              <ul class="nav navbar-nav navbar-main">
              <li><a href="{% url 'userrequests:list' %}">Home</a>
              <li><a href="{% url 'userrequests:create' %}">Submit Observation</a></li>
              <li><a href="{% url 'proposals:list' %}?active=True">Manage Proposals</a></li>
              <li><a href="https://lco.global/observatory/tools/">Planning Tools</a></li>
              <li><a href="{% url 'help' %}">Help</a></li>
              </ul>
              <ul class="nav navbar-nav navbar-right">
                {% if user.is_authenticated %}
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ user.username }}<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'profile' %}">Profile</a></li>
                        <li><a href="{% url 'auth_logout' %}">Logout</a></li>
                    </ul>
                </li>
                {% else %}
                <li><a href="{% url 'auth_login' %}">Login</a></li>
                {% endif %}
              </ul>
            </div><!--/.nav-collapse -->
          </div>
        </div>
      </nav>
      <section>
        <div class="intro downPage blue">
        &nbsp;
        </div>
      </section>

      <div class="container">
          <div class="row">
              <div class="col-md-12">
                  <div class="messages">
                      {% bootstrap_messages %}
                  </div>
              </div>
          </div>
          {% block content %}
          {% endblock %}
      </div>
      <div class="footer">
        Copyright © 2017 Las Cumbres Observatory. All rights reserved. <br/>
        <a href="https://github.com/LCOGT/valhalla"><i class="fa fa-github"></i> View on Github</a>
      </div>
    </body>
    {% block javascript %}
    <script type="text/javascript" src="{% static '/bundles/common.js' %}"></script>
    <script type="text/javascript" src="{% static '/bundles/global.js' %}"></script>
    {% endblock %}
    {% block extra_javascript %}
    {% endblock %}
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-2087713-6', 'auto');
      ga('send', 'pageview');
    </script>
</html>
